package com.myblog.firstjavaproject;

public class Test1 {
    public static void main(String[] args) {
        Person p1 = new Person("张三",20);
        Person p2 = new Person("张三",20);
        System.out.println(p1 == p2);
        System.out.println(p1.equals(p2));
        System.out.println(p1.hashCode() == p2.hashCode());

    }

}
